<template>
  <div>
    <h3>这是子组件</h3>
    <p>这是父组件的数据:{{ dataF }}</p>
  </div>
</template>
<script>
export default {
  data() {
    return { sonData: '这是子组件数据', dataF: '' };
  },
  created() {
    console.log(this.$parent);
    this.dataF = this.$parent.fatData;
  }
};
</script>
